<script language="javascript">
	function thongtin(d)
	{
		<meta http-equiv="refresh" content="0;url=home_admin.php?module=thongtincodong&manganh='d'" />;
	}
</script>
<?php
			//include_once("csdl.php");
			//$knoi=new csdl();
			$kq=$knoi->queryCsdl("select menhgiacophan,tongsocophan from congty where mact=01");
			$n=mysql_fetch_array($kq);
			$giacp=$n['menhgiacophan'];
			$tongcp=$n['tongsocophan'];
			$k=$knoi->queryCsdl("select * from codong order by socophanphothong desc");
			//echo mysql_num_rows($k);
			if(mysql_num_rows($k)>0)
			{
?>
<p align="center" class="styletitle">DANH SÁCH CỔ ĐÔNG</p>
	<table align="center"  style="border:solid #FFFFFF; background-color:#F5F5F5">
		<tr class="stylelitle"  style="text-align:center; background-color:#CCFFFF">
			<td>Stt</td><!--<td>Logo</td>--><td>Cổ Đông</td><td>Địa chỉ trụ sở chính (cá nhân)</td><td>Người đại diện</td><td>Số cổ phần</td><td>Giá trị cổ phần</td><td>Tỉ lệ (%)</td><td>Mã số DN/CMND</td><td>Chi tiết</td><td>Xóa</td>
		</tr>
		<?php
			$i=1;
			while($n=mysql_fetch_array($k))
			{
				if($i%2==0)
						$color='#FFFFCC';
					else
						$color='#FFFFFF';
					//echo $n['diachi']."<br>";	
		?>
				<tr class="classtr" style="text-align:left; background-color:<?php echo $color; ?>;">
			<td style="text-align:right"><?php echo $i; ?>&nbsp;</td><!--<td>Logo</td>--><td class="classtd">&nbsp;<?php echo $n['tencodong']; ?></td><td>&nbsp;<?php echo $n['diachi']; ?></td><td>&nbsp;<?php echo $n['nguoidaidien']; ?></td><td style="text-align:right"><?php echo $n['socophanphothong']; ?>&nbsp;</td><td style="text-align:right"><?php echo ($giacp*$n['socophanphothong']); ?>&nbsp;</td><td style="text-align:right"><?php echo ($n['socophanphothong']/$tongcp*100); ?>&nbsp;</td><td>&nbsp;<?php echo $n['cmnd']; ?></td><td style="text-align:center"><a  href="home_admin.php?module=thongtincodong&stt=<?php echo $n['stt']; ?>"><img src="images/chitiet.png" border="0" title="Chi tiết cổ đông" /></a></td>
			<td style="text-align:center"><a href="home_admin.php?module=xoa&field=stt&table=codong&value=<?php echo $n['stt']; ?>"><img src="images/Sign-Error-icon1.png" border="0" title="Xóa cổ đông" /></a></td>
		</tr>	
		<?php
				$i++;	
			}
		?>
	</table>
<?php
	}
	else
		echo "<label class='stylelitle'>Hiện tại công ty chưa có cổ đông nào!</label>";
?>
		<br /><label style="text-align:center" class="button"><a href="home_admin.php?module=themcodong"><img src="images/add.png" border="0">&nbsp;Cổ đông mới</a></label>